package com.uming.controller;

import com.sun.org.apache.xpath.internal.operations.Mod;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Administrator on 2016/8/25.
 */
@Controller
public class HelloWorldController {
    @RequestMapping("/hello")
    public ModelAndView hellowWorld(){
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.addObject("message", "大千世界无奇不有");
        modelAndView.setViewName("hello");
        return modelAndView;
    }
}
